package com.biannuo.szk.community.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.biannuo.szk.common.base.BaseVLLEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 问答表
 * </p>
 *
 * @author admin
 * @since 2022-04-26
 */
@Data
@TableName("inv_question")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "InvQuestion对象", description = "问答表")
public class Question extends BaseVLLEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("题图")
    private String coverUrl;

    @ApiModelProperty("积分")
    private String integralCount;

    @ApiModelProperty("问答人")
    private Long userId;

    @ApiModelProperty("状态，0草稿，1，审批中，2已发布，3关闭")
    private Integer status;

    @ApiModelProperty("是否置顶，0默认；1置顶；")
    private Integer isTop;

    @ApiModelProperty("回答计数")
    private Integer answerCount;

    @ApiModelProperty("评论计数")
    private Integer commentCount;

    @ApiModelProperty("浏览记数")
    private Integer pageViewCount;
    @ApiModelProperty("收藏计数")
    private Integer collectionCount;

    @ApiModelProperty("关注记数")
    private Integer followCount;

    @ApiModelProperty("创建人")
    private Long createUser;

    @ApiModelProperty("创建时间")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新人")
    private Long updateUser;

    @ApiModelProperty("更新时间")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "专业，为了数智创意冗余")
    private String majorId;

}
